package org.wisigoth.chat.client;

import java.util.EventObject;
/**
 * UserPreferenceEvent notify any change made on the UserPreferences 
 * @author tof
 *
 */
public class UserPreferencesEvent extends EventObject {
	
	private String updatedPreference;
	
	public UserPreferencesEvent(UserPreferences source, String preference) {
		super(source);
		this.updatedPreference = preference;
	}

	@Override
	public UserPreferences getSource() {
		return (UserPreferences)super.getSource();
	}
/**
 * Return the name of the preference which has been updated
 * @return String corresponding to the name of the preference which has been updated
 */
	public String getUpdatedPreference() {
		return updatedPreference;
	}

}
